// import axios from 'axios'
import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import ContentApp from './ContentApp.vue'
// import qrcode from 'yaqrcode'
// import qr from 'qr-image'

document.addEventListener('DOMContentLoaded', () => {
    let appEl = document.createElement('div')
    appEl.id = 'extApp'
    document.getElementsByTagName('body')[0].appendChild(appEl)

    let link = document.createElement('link');
    link.rel = 'stylesheet'
    link.href = 'https://unpkg.com/element-plus@1.2.0-beta.6/dist/index.css'
    document.getElementsByTagName('head')[0].appendChild(link);

    const app = createApp(ContentApp)
    app.use(ElementPlus)
    app.mount('#extApp')
})
